package com.example.everying.framework.pay.service;

import com.example.everying.model.dto.pay.TransferCallbackResult;
import com.wechat.pay.java.service.payments.jsapi.model.PrepayWithRequestPaymentResponse;
import com.wechat.pay.java.service.payments.model.Transaction;
import jakarta.servlet.http.HttpServletRequest;

import java.io.IOException;

// WechatPayService.java
public interface WechatPayService {


    PrepayWithRequestPaymentResponse createOrder(Integer fen, String description, String outTradeNo, String openId);

    Transaction queryOrderByOutTradeNo(String outTradeNo);

    Transaction payCallback(HttpServletRequest request) throws IOException;

}
